﻿#{extends 'Application/tela_client.html' /}
#{set title:'Solicitar Servico' /}

<script language="JavaScript" TYPE="text/javascript">

function open_busca()
{
	var indexSelect = document.getElementById("servico").selectedIndex;
    var valueSelected = servicos.servico.options[indexSelect].text;
	var texto = "@{Application.mostrar_servico("+valueSelected+")}";
	var texto2 = "@"+texto;
	<!--document.write(texto);
	window.open(texto,"_top");
}

</script>


<html>

  <table border="0" class="posicao_tela">
    <tr><td><img src="/public/images/Status.png"></td><tr>
  </table>	
  
  <form class = "posicao_status" id = "servicos"action="@{Application.mostrar_servico()}" method="GET">
	<font size="4" align = "left">
	  <table border = "0">
	  <tr><td>Selecione o servi&ccedil;o <select name="servico">      
		#{if nselecionado}<option value = "selecione">Selecione um servi&ccedil;o</option>#{/if}
		#{list items: servicos, as:'t'}
			<option value=${t}>${t}</option>
	    #{/list}
	  </select></td></tr>
	  
	  <tr><td></td></tr>
	  <tr><td>Mensagem da Empresa</td></tr>
	  <tr> <td><textarea name = "descricao" readonly = "true" class = "msg_size">${msg}</textarea></td></tr>
	  <tr><td>Descri&ccedil;ao do Cliente</td></tr>
	  <tr> <td><textarea name = "descricao" class = "msg_size">${descricao}</textarea></td></tr>
	  <tr><td align = "left"><input value = "Visualizar" type = "submit"><font color ="red" size="2">${estado}</td></tr>
	  </table>
	  
  </form>
</html>